<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>简易微博</title>
<link href="style/weibo.css" rel="stylesheet" type="text/css" />
<script src="ajax.js"></script>
<script>

window.onload = function(){
    var oTxt = document.getElementById('t1');
    var oBtn = document.getElementById('btn1');
    var oBox = document.getElementById('reply_box');
    var oPageBox = document.getElementById('page_box');
    var URL = 'aaa.php';

    oBtn.onclick=sendMsg;
    function sendMsg(){
        if(oTxt.value==''){
            alert('输入内容不能为空');
            return;
        }else{  
            ajax({
                url:URL,
                data:{
                    act:'add',
                    content:oTxt.value
                },
                success:function(data){
                    var json=eval('('+data+')');
                    if(json.error==0){
                        
                    }
                }
            });
        }
    }
</script>
</head>

<body>
<div class="znsArea">
<!--留言-->
     <div class="takeComment">
        <textarea name="textarea" class="takeTextField" id="t1"></textarea>
        <div class="takeSbmComment">
            <input type="button" class="inputs" value="" id="btn1" />
            <span>(可按 Enter 回复)</span>
        </div>
    </div>
<!--已留-->
    <div class="commentOn">
        <div class="messList" id="reply_box">
        	<!-- <div class="reply">
                <p class="replyContent">卫士，新款卫士将推出总共14种车身式样。其中， XS旅行款车型售价为32295英镑(约33.6万元)。</p>
                <p class="operation">
                    <span class="replyTime">2011-09-08 16:37:60</span>
                    <span class="handle">
                        <a href="javascript:;" class="top">0</a>
                        <a href="javascript:;" class="down_icon">0</a>
                        <a href="javascript:;" class="cut">删除</a>
                    </span>
                </p>
            </div> -->
        </div>
        <div class="page" id="page_box">
        	<!-- <a href="javascript:;" class="active">1</a>
                <a href="javascript:;">2</a>
                <a href="javascript:;">3</a> -->
        </div>
    </div>
</div>
</body>
</html>
